import fetch from '@/utils/fetch';
import { ajax } from '@/utils/trip/ajax'

export function addSysProperties(obj) {
    return fetch({
      url: '/api/admin/sys/properties/sysProperties/',
      method: 'post',
      data: obj
    });
}
export function getSysPropertiesExcel() {
    return fetch({
      url: '/api/admin/sys/properties/sysProperties/excel',
      method: 'get',
    });
}
export function putSysPropertiesExcel(obj) {
    return fetch({
      url: '/api/admin/sys/properties/sysProperties/excel',
      method: 'put',
      data: obj
    });
}
export function getPayCostRuleExcelTemplate() {
    return fetch({
      url: '/api/admin/sys/properties/sysProperties/excel',
      method: 'get',
    });
}
export function deleteAllSysProperties(ids) {
    return fetch({
      url: '/api/admin/sys/properties/sysProperties/list',
      method: 'delete',
      data:ids
    });
}
export function listAllSysProperties() {
    return fetch({
      url: '/api/admin/sys/properties/sysProperties/list',
      method: 'get',
    });
}
export function getSysPropertiesTable(query) {
    return fetch({
      url: '/api/admin/sys/properties/sysProperties/pageList',
      method: 'get',
      params:query
    });
}
export function delSysProperties(id) {
    return fetch({
      url: '/api/admin/sys/properties/sysProperties/'+id,
      method: 'delete',
    });
}
export function getSysProperties(id) {
    return fetch({
      url: '/api/admin/sys/properties/sysProperties/'+id,
      method: 'get',
    });
}
export function putSysProperties(id,obj) {
    return fetch({
      url: '/api/admin/sys/properties/sysProperties/'+id,
      method: 'put',
      data:obj
    });
}